<?php
return array(
  //'配置项'=>'配置值'
  
    'URL_ROUTER_ON'   => true, //开启路由
    'URL_ROUTE_RULES' => array( //定义路由规则

    //获取文章分类
    array('article/category', 'article/getCategory', '', array('method' => 'get')),
    //获取文章分类列表
    array('article/categorylist', 'article/getCategoryList', '', array('method' => 'get')),
    //获取faq列表
    array('article/faqlist', 'article/getFaqs', '', array('method' => 'get')),
    //获取文章列表get(category_id,page)
    array('article/articles', 'article/getArticles', '', array('method' => 'get')),
    //获取文章详细内容get(article_id)
    array('article/articledetail', 'article/getArticleDetail', '', array('method' => 'get')),
    //搜索文章(category_id,keywords)
    array('article/search', 'article/searchArticles', '', array('method' => 'get')),
    //更新阅读量get(article_id)，返回的数据为更新后的数据
    array('article/addview', 'article/addView', '', array('method' => 'post')),


    //获取某场展览的票务 exhibitionId
    array('ticket/tickets', 'ticket/getExhibitionTickets', '', array('method' => 'get')),
    //获取票务详情 ticketId
    array('ticket/ticket', 'ticket/getTicketDetail', '', array('method' => 'get')),
    //获取票务详情 ticketId
    array('ticket/confirmtorder', 'ticket/confirmTicketOrder', '', array('method' => 'post')),
    //获取订单兑换码 ticketOrderId
    array('ticket/redeemcodes', 'ticket/getRedeemCodes', '', array('method' => 'get')),
    //获取所有兑换码
    array('ticket/allredeemcodes', 'ticket/getAllRedeemCodes', '', array('method' => 'get')),
    //兑换票券 redeem_code
    array('ticket/exchangeticket', 'ticket/exchangeTicket', '', array('method' => 'post')),
    //取消 redeem_code
    array('ticket/cancelticketorder', 'ticket/cancelTicketOrder', '', array('method' => 'post')),


    //获取所有票务订单
    array('order/ticketorders', 'order/getAllTicketOrder', '', array('method' => 'get')),
    //获取票务订单详情
    array('order/ticketorderdetail', 'order/getTicketOrderDetail', '', array('method' => 'get')),
    //获取vip会员种类
    array('order/viptypes', 'order/getAllVipTypes', '', array('method' => 'get')),
    //获取vip会员详情
    array('order/viptype', 'order/getVipTypeDetail', '', array('method' => 'get')),

    //获取所有展览
    array('info/exhibitions', 'info/getAllExhibition', '', array('method' => 'get')),
     //获取展览详情 params：exhibitionId
    array('info/exhibitiondetail', 'info/getExhibitionDetail', '', array('method' => 'get')),
    //获取所有作品
    array('info/works', 'info/getAllworks', '', array('method' => 'get')),
    //获取作品详情 workId
    array('info/workdetail', 'info/getWorkDetail', '', array('method' => 'get')),
    //获取首页banner
    array('info/indexbanner', 'info/getIndexBanner', '', array('method' => 'get')),

    //支付票券订单
    array('wechat/confirmtorder', 'wechat/confirmTicketOrder', '', array('method' => 'post')),
    //支付商品订单 orderId
    array('wechat/productpay', 'wechat/payProductOrder', '', array('method' => 'post')),
    //会员购买
    array('wechat/vippay', 'wechat/buyVipOrder', '', array('method' => 'post')),
    //添加会员卡到卡包
    array('wechat/addtowallet', 'wechat/addToWechatCardWallet', '', array('method' => 'post')),
    //修改会员卡说明
    array('wechat/editwechatcard', 'wechat/editWechatCard', '', array('method' => 'post')),
    //获取accesstoken
    array('wechat/accesstoken', 'wechat/getAccesstoken', '', array('method' => 'get')),
    //获取卡券api_ticket
    array('wechat/wxgetticket', 'wechat/wechatCardApiTicket', '', array('method' => 'get')),
    //删除微信卡券
    array('wechat/deletecwxcard', 'wechat/deleteWechatCard', '', array('method' => 'get')),
    //卡券测试白名单
    array('wechat/wxcardtestid', 'wechat/wechatCardTestId', '', array('method' => 'get')),
    //后台添加会员
    array('wechat/addvipmember', 'wechat/addVipMmber', '', array('method' => 'get')),

    //发送短信验证码
    array('user/sendtoken', 'user/sendSmsToken', '', array('method' => 'get')),
    //注册 phone token
    array('user/register', 'user/register', '', array('method' => 'post')),
    //我的订单
    array('user/productorders', 'user/getProductOrders', '', array('method' => 'get')),
    //我的门票
    array('user/codes', 'user/getTicketRedeemCodes', '', array('method' => 'get')),
    //我的个人信息
    array('user/profile', 'user/profile', '', array('method' => 'get')),
    //检测该用户是否有openid 没有则未注册
    array('user/usertest', 'user/userTest', '', array('method' => 'get')),
    //修改个人信息
    array('user/editprofile', 'user/editProfile', '', array('method' => 'post')),
    //退出登录
    array('user/logout', 'user/logout', '', array('method' => 'post')),

    //获取某分类下的子分类 衍生品id为1 书籍id为2 穿参：categoryId
    array('product/categories', 'product/getProductCategory', '', array('method' => 'get')),
    //获取某分类下的商品  穿参：categoryId
    array('product/products', 'product/getProducts', '', array('method' => 'get')),
    //获取商品详情  productId
    array('product/product', 'product/getProduct', '', array('method' => 'get')),
    //加入购物车  attributionId,quantity
    array('product/addtocart', 'product/addToCart', '', array('method' => 'post')),
    //购物车某商品数量修改  cartId,quantity
    array('product/savetocart', 'product/saveToCart', '', array('method' => 'post')),
    //我的购物车
    array('product/mycart', 'product/myCart', '', array('method' => 'get')),
    //获取省市县 pid(上一级的id，若请求省，不需要传)
    array('product/cities', 'product/getCities', '', array('method' => 'get')),
    //添加收件地址  name,phone,province省,city市,district县/区,area详细地址
    array('product/addaddress', 'product/addAddress', '', array('method' => 'post')),
    //修改收件地址  addressId,name,phone,province省,city市,district县/区,area详细地址
    array('product/editaddress', 'product/editAddress', '', array('method' => 'post')),
    //删除收件地址  addressId
    array('product/deleteaddress', 'product/deleteAddress', '', array('method' => 'post')),
    //我的所有地址 
    array('product/addresses', 'product/myAddresses', '', array('method' => 'get')),
    //某条地址详情  addressId
    array('product/addressdetail', 'product/addressDetail', '', array('method' => 'get')),
    //购物车下单 
    array('product/confirmproductorder', 'product/confirmProductOrder', '', array('method' => 'post')),
    //结算页面获取订单详情  orderId
    array('product/productorderdetail', 'product/productOrderDetail', '', array('method' => 'get')),
    //取消订单 orderId
    array('product/cancelorder', 'product/cancelOrder', '', array('method' => 'post')),

  ),


    /* 文件上传相关配置 */
    'DOWNLOAD_UPLOAD' => array(
        'mimes'    => '', //允许上传的文件MiMe类型
        'maxSize'  => 5*1024*1024, //上传的文件大小限制 (0-不做限制)
        'exts'     => 'jpg,gif,png,jpeg,zip,rar,tar,gz,7z,doc,docx,txt,xml', //允许上传的文件后缀
        'autoSub'  => true, //自动子目录保存文件
        'subName'  => array('date', 'Y-m-d'), //子目录创建方式，[0]-函数名，[1]-参数，多个参数使用数组
        'rootPath' => './Uploads/Download/', //保存根路径
        'savePath' => '', //保存路径
        'saveName' => array('uniqid', ''), //上传文件命名规则，[0]-函数名，[1]-参数，多个参数使用数组
        'saveExt'  => '', //文件保存后缀，空则使用原后缀
        'replace'  => false, //存在同名是否覆盖
        'hash'     => true, //是否生成hash编码
        'callback' => false, //检测文件是否存在回调函数，如果存在返回文件信息数组
    ), //下载模型上传配置（文件上传类配置）

  
       /* SESSION 和 COOKIE 配置 */
    'SESSION_PREFIX' => 'art_museum', //session前缀
    'COOKIE_PREFIX'  => 'art_museum_', // Cookie前缀 避免冲突

    
    /* 图片上传相关配置 */
   
    
);

